cmake_minimum_required(VERSION 3.0)

set(DEMO_NAME 0_model_builder_demo)
add_executable(${DEMO_NAME} main.cpp)

set(AI_COMMON_LIBRARY ${PROJECT_NAME}_common_static)
set(PT_LIBS ${PROJECT_NAME}_pt_static)
set(MODEL_SDK_LIBRARY ${PROJECT_NAME}_model_static)

target_link_libraries(${DEMO_NAME}
    ${MODEL_SDK_LIBRARY}
    ${PT_LIBS}
    ${AI_COMMON_LIBRARY}  # 确保链接了 common 库
    -lpthread
)